fn_head=(ctx)=>{
let html = `
<div id="head">
            <tr>
                <td><input type="text" name="keyword" id=""></td>
                <td><input type="button" value="查询" onclick="query()"></td>
            </tr>
            <tr>
                <td><input type="button" value="新增" onclick="add()"></td>
            </tr>
            <table id="content">
                <tr>
                    <td>id</td>
                    <td>标题</td>
                    <td>摘要</td>
                    <td>内容</td>
                    <td>分类</td>
                    <td>作者</td>
                    <td>发表时间</td>
                    <td>操作</td>
                </tr>
            </table>
        </div>
`
ctx.body = html
}

let get = [['/head',fn_head]]

module.exports={
    'GET':get
}